package edu.mis.model.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;


@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseGoods<M extends BaseGoods<M>> extends Model<M> implements IBean {

	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}

	public java.lang.Integer getId() {
		return get("id");
	}

	public M setName(java.lang.String name) {
		set("name", name);
		return (M)this;
	}

	public java.lang.String getName() {
		return get("name");
	}

	public M setPrice(java.lang.Integer price) {
		set("price", price);
		return (M)this;
	}

	public java.lang.Integer getPrice() {
		return get("price");
	}

	public M setCategoryId(java.lang.Integer categoryId) {
		set("categoryId", categoryId);
		return (M)this;
	}

	public java.lang.Integer getCategoryId() {
		return get("categoryId");
	}

}
